[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Computes the intersection of this set with another set. The intersection of two sets
is all items that appear in both of the sets. This set receives
the intersection of the two sets, the other set is unchanged.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public void IntersectionWith( Set<T> otherSet ) |
Visual Basic (Declaration) |
---|
Public Sub IntersectionWith ( _ otherSet As Set(Of T) _ ) |
Visual C++ |
---|
public: void IntersectionWith ( Set<T>^ otherSet ) |
Parameters
- otherSet
- Set<(Of <T>)>
Set to intersection with.
Remarks
When equal items appear in both sets, the intersection will include an arbitrary choice of one of the two equal items.
The intersection of two sets is computed in time O(N), where N is the size of the smaller set.
Exceptions
Exception | Condition |
---|---|
System..::InvalidOperationException | This set and otherSet don't use the same method for comparing items. |
See Also
Set<(Of <T>)> Class
Wintellect.PowerCollections Namespace